<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<link rel="stylesheet" href="${ctxStatic}/sweetalert/sweetalert.css">
 <script src="${ctxStatic}/sweetalert/sweetalert.min.js"></script>
<script src="${ctxStatic}/sdlyfp/js/base.js"></script>

    	<!-- head -->
        <header class="am-topbar am-topbar-inverse admin-header">
        <div class="am-topbar-brand">
            <a href="${ctx }" class="tpl-logo" style="color:#000000;width: 200px;">自然资源行业扶贫
                <!--<img src="${ctxStatic}/sdlyfp/img/logo.png" alt="">-->
            </a>
            	<%-- <%=com.thinkgem.jeesite.common.listener.OnlineCount.getOnlineCount() %> --%>
            	在线人数：<font color="red"><b id="onlineCount"><%=com.thinkgem.jeesite.common.listener.OnlineCount.getOnlineCount() %></b></font>
        </div>
        
        <c:if test="${loginType ne 'weixin'}">
	        <div class="am-icon-list tpl-header-nav-hover-ico am-fl am-margin-right"></div>
	        <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}">
		        <span class="am-sr-only">导航切换</span> 
		        <span class="am-icon-bars"></span>
	        </button>
        </c:if>
         
        <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
            <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
                <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                    <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                        <span class="am-icon-calendar"></span> 总体进度 <span class="am-badge tpl-badge-primary am-round">4</span></span>
                    </a>
                    <ul class="am-dropdown-content tpl-dropdown-content">
                        <li class="tpl-dropdown-content-external">
                            <h3>你有 <span class="tpl-color-primary">4</span> 个任务进度</h3><a href="###">全部</a>
                        </li>
                        <li>
                        <a href="${ctx }/gt/gtForest?menuId=forest" class="tpl-dropdown-content-progress">
                            <span class="task">
                    			<span class="desc">经济林产业扶贫 </span>
                            	<span class="percent">${empty forestTotalRate.forestRate ? '0':forestTotalRate.forestRate}%</span>
                            </span>
                            <span class="progress">
		                       <div class="am-progress tpl-progress am-progress-striped">
		                       	<div class="am-progress-bar am-progress-bar-success" style="width:${empty forestTotalRate.forestRate ? '0':forestTotalRate.forestRate}%"></div>
		                       </div>
		                   </span>
                        </a>
                        </li>
                        
                        <li>
                        <a href="${ctx }/gt/gtForest?menuId=forest" class="tpl-dropdown-content-progress">
                            <span class="task">
	                    		<span class="desc">经济林帮扶带动人口 </span>
	                            <span class="percent">${empty forestTotalRate.peopleRate ? '0':forestTotalRate.peopleRate}%</span>
                            </span>
                            <span class="progress">
			                    <div class="am-progress tpl-progress am-progress-striped">
			                    <div class="am-progress-bar am-progress-bar-warning" style="width:${empty forestTotalRate.peopleRate ? '0':forestTotalRate.peopleRate}%"></div>
			                    </div>
			                </span>
                        </a>
                        </li>
                        
                        <li>
                        <a href="${ctx }/gt/gtPost?menuId=post" class="tpl-dropdown-content-progress">
                            <span class="task">
                             <span class="desc">护林员岗位扶贫 </span>
                             <span class="percent">${empty postTotalRate.rate ? '0':postTotalRate.rate}%</span>
                            </span>
                            <span class="progress">
		                      <div class="am-progress tpl-progress am-progress-striped">
		                      	<div class="am-progress-bar am-progress-bar-secondary" style="width:${empty postTotalRate.rate ? '0':postTotalRate.rate}%"></div>
		                      </div>
		                   </span>
                        </a>
                        </li>
                        
                        <li>
                        <a href="${ctx }/gt/gtCompany?menuId=company" class="tpl-dropdown-content-progress">
                            <span class="task">
                     		<span class="desc">企业（合作社）扶贫 </span>
                             <span class="percent">${empty companyTotalRate.rate ? '0':companyTotalRate.rate}%</span>
                            </span>
                         <span class="progress">
		                    <div class="am-progress tpl-progress am-progress-striped">
		                    	<div class="am-progress-bar am-progress-bar-warning" style="width:${empty companyTotalRate.rate ? '0':companyTotalRate.rate}%"></div>
		                    </div>
		                </span>
                        </a>
                        </li>
                        
                    </ul>
                </li>
                <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen" class="tpl-header-list-link">
                	<span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a>
                </li>
                <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                    <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                        <span class="tpl-header-list-user-nick">${fns:getUser().name}</span>
                        <span class="tpl-header-list-user-ico"> 
                        	<img src="${ctxStatic}/sdlyfp/img/user01.png">
                        </span>
                    </a>
                    <ul class="am-dropdown-content">
                        <!-- <li><a href="#"><span class="am-icon-bell-o"></span> 个人信息</a></li>
                        <li><a href="#"><span class="am-icon-cog"></span> 设置</a></li> -->
                        <li><a href="${ctx }/logout"><span class="am-icon-power-off"></span> 退出</a></li>
                    </ul>
                </li>
                <li><a href="${ctx }/logout" class="tpl-header-list-link"><span class="am-icon-sign-out tpl-header-list-ico-out-size"></span></a></li>
            </ul>
        </div>
    </header>
 <script type="text/javascript">
 var isInit = "${fns:getUser().init}";
 if('1' == isInit)
 {
 	location="${ctx }/gt/gtUser/modifyPwd?menuId=changPwd";
 }

 
 setInterval("qryOnlineCount()",5*60*1000);
 
 
</script>
